package sm

import (

	"log"
	"app/common"
	"git.oschina.net/zhgk/sqldb"
)

//菜单服务提供者
type BmMenuService struct {
}

//根据PID查询子菜单
//系统支持两级菜单
func (p BmMenuService)QueryMenuByPid(pid string) (res bool, msg string, data sqldb.RowMaps) {
	sqldb.UserDefaultDB()
	data, err := sqldb.QueryRowMaps(BM_SM_MENU_PID_QUERY_SQL, pid)
	if err != nil {
		log.Fatal(err.Error())
		return false, err.Error(), nil
	}
	return true, common.SUCCESS, data
}
